#ifndef PSEGYFORM_H
#define PSEGYFORM_H

#include <QWidget>
#include <config/common.h>
#include <config/config.h>
#include <QFileDialog>
#include "form/fileattributeform.h"
#include "thread/psegytosegythread.h"
#include "QFile"
namespace Ui {
    class PsegyForm;
}

class PsegyForm : public QWidget
{
    Q_OBJECT

public:
    explicit PsegyForm(QWidget *parent = 0);
    ~PsegyForm();
    void resizeEvent(QResizeEvent *);
    void paintEvent(QPaintEvent *);

private slots:
    void on_pushButton_file_clicked();
    void on_pushButton_remove_clicked();
    void on_pushButton_add_clicked();
    void on_pushButton_select_clicked();
     void on_pushButton_save_clicked();
    void on_pushButton_transform_clicked();
    void fileFinish(QString fileName);
    void fileAll();
    void on_listWidget_file_doubleClicked(QModelIndex index);
    void on_pushButton_nav_clicked();
    void on_pushButton_dec_clicked();
    void showDialog(QString str);

private:
    Ui::PsegyForm *ui;
    Common *comm;
    Config *config;
    DATAFORMAT format;
    float step;
    int progressBarValue;
    int margin;
    PsegyToSegyThread *psegyToSegy;

};

#endif // SACFORM_H






